package com.start.ws;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.socket.server.standard.ServerEndpointExporter;

@Slf4j
@Configuration
@ComponentScan({"com.start.ws.**"})
public class StartWebSocketAutoConfiguration {
    @Bean
    public ServerEndpointExporter startServerEndpointExporter() {
        log.info("websocketUrl:" + StartWebSocketEndpoint.START_WS_URL);
        return new ServerEndpointExporter();
    }
}
